
<!DOCTYPE html>

<html>
<head>
	<meta charset="UTF-8" />
	<title>分店管理-设置</title>
	<link href="/js/plugin/layui-v2.3.0/layui/css/layui.css" rel="stylesheet" />
	<link href="/css/reset.css" rel="stylesheet" />
	<link href="/css/index.css" rel="stylesheet" />
	<link href="/css/project_set.css" rel="stylesheet" />
	<script src="/js/jquery-2.1.1.min.js"></script>
	<script src="/js/plugin/layui-v2.3.0/layui/layui.js"></script>
</head>
<style>
::-webkit-scrollbar {
    width: 6px;
     height: 6px;
    background-color: #F5F5F5;
    cursor: pointer;
}
::-webkit-scrollbar-thumb {
    background-color: #a2a2a2;
    border-radius: 2px;
}
/* ::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #ffffff;
} */ 
body{
	overflow-y: scroll;
} 
</style>
<body>
<div class="kb-out-box">
	<div class="kb-content my-locations-list">	
		<div class="nav-container f-left">
			<div class="nav-container-content">
				<header class="nav-header">
					<h2 class="header-title">个人设置</h2>
				</header>
				
			</div>
			<div class="nav-container-content">
				<header class="nav-header">
					<h2 class="header-title">个人设置</h2>
				</header>
				<div class="nav-body" id="nav-side">
					<ul class="nav-container-list">
						<li class="" data-src="setGere"><a href="javascript:void(0)">个人信息</a></li>
						<li data-src="setAnquan"><a href="javascript:void(0)">安全设置</a></li>
					</ul>
				</div>
			</div>
		</div>	
		<div class="nav-section-container nav-section-container-bg f-right">
			<div id="iframeSet-wrap" style="width: 100%;min-height: 100%; position: relative;">
				<iframe frameborder="0" height="100%" id="iframeSet" scroll="no" src="" width="100%"></iframe>
			</div>
		</div>	
	</div>
</div>

<script>
$(function(){
	layui.use(['element',"layer","form"], function(){
		var layer=layui.layer,form = layui.form;
	});
	getIframeSetHash()
	//设置侧边切换
	$("#nav-side").on("click","li",function(){
		
		var dataSrc=$(this).attr("data-src"),src='/system/org/user/'+dataSrc;
		location.hash='#'+dataSrc;
		getIframeSetHash()
		
	})
})	
//匹配此页面的iframe的hash，给src赋值；
function getIframeSetHash(){
	var layid = location.hash.substr(1),iframeSrc="",hashId='';
	$("#nav-side li").removeClass("nav-container-list-hover")
	if(layid==""||layid=='undefined'||layid==null||layid=='setGere'){//首次进来，分店管理
		iframeSrc='/system/org/user/toSetXinxi';
		layid='setGere';
		//location.hash = 'setBasic';
	}
	if(layid=='setAnquan'){
		iframeSrc='/system/org/user/toModPassword';
	}
	
	$("#nav-side li[data-src='"+layid+"']").addClass("nav-container-list-hover");
    var iframe = document.createElement('iframe');//动态创建iframe，禁止iframe的src回退；
    iframe.src = iframeSrc;
    iframe.width = '100%';
    iframe.height = '100%';
    $("#iframeSet-wrap").html($(iframe));
	//$("#project-iframe").attr("src",iframeSrc);	
}
	
//手动设置iframe容器的高度
function setiframeWrap(h){
   document.getElementById("iframeSet-wrap").style.height = h+"px"
}
</script>
</body></html>